from apscheduler.schedulers.background import BackgroundScheduler
from django.conf.urls import url
from django_apscheduler.jobstores import DjangoJobStore
from rest_framework_jwt.views import obtain_jwt_token
from .views import UserView, AdminUserView,CommonUserView

urlpatterns = [
    # 登录
    url(r'^login$', obtain_jwt_token),
    # 创建用户，管理员用
    url(r'^admin/users$', AdminUserView.as_view()),
    # 查询、删除、修改用户密码，管理员用
    url(r'^admin/users/(?P<uname>.+)$', AdminUserView.as_view()),
    # 获取所有用户详细信息
    url(r'^users$', UserView.as_view()),
    # 修改普通用户详细信息
    url(r'^userInfo$', CommonUserView.as_view())
]
